all:main echo
main:main.cc
	g++ -o main main.cc -std=c++17 -lpthread -llua-5.3 -L/usr/local/lib64 -ljsoncpp -g

echo:echo.cc
	g++ -o $@ $^ -std=c++17 -ljsoncpp -lpthread
.PHONY:clean
clean:
	rm  -rf main echo